package com.ruoyi.board.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.board.mapper.StockBoardIndustryNameEmMapper;
import com.ruoyi.board.domain.StockBoardIndustryNameEm;
import com.ruoyi.board.service.IStockBoardIndustryNameEmService;
import com.ruoyi.common.core.text.Convert;

/**
 * 东方财富-行业板块Service业务层处理
 * 
 * @author leng.xz
 * @date 2024-05-17
 */
@Service
public class StockBoardIndustryNameEmServiceImpl implements IStockBoardIndustryNameEmService 
{
    @Autowired
    private StockBoardIndustryNameEmMapper stockBoardIndustryNameEmMapper;

    /**
     * 查询东方财富-行业板块
     * 
     * @param id 东方财富-行业板块ID
     * @return 东方财富-行业板块
     */
    @Override
    public StockBoardIndustryNameEm selectStockBoardIndustryNameEmById(Long id)
    {
        return stockBoardIndustryNameEmMapper.selectStockBoardIndustryNameEmById(id);
    }

    /**
     * 查询东方财富-行业板块列表
     * 
     * @param stockBoardIndustryNameEm 东方财富-行业板块
     * @return 东方财富-行业板块
     */
    @Override
    public List<StockBoardIndustryNameEm> selectStockBoardIndustryNameEmList(StockBoardIndustryNameEm stockBoardIndustryNameEm)
    {
        return stockBoardIndustryNameEmMapper.selectStockBoardIndustryNameEmList(stockBoardIndustryNameEm);
    }

    /**
     * 新增东方财富-行业板块
     * 
     * @param stockBoardIndustryNameEm 东方财富-行业板块
     * @return 结果
     */
    @Override
    public int insertStockBoardIndustryNameEm(StockBoardIndustryNameEm stockBoardIndustryNameEm)
    {
        return stockBoardIndustryNameEmMapper.insertStockBoardIndustryNameEm(stockBoardIndustryNameEm);
    }

    /**
     * 修改东方财富-行业板块
     * 
     * @param stockBoardIndustryNameEm 东方财富-行业板块
     * @return 结果
     */
    @Override
    public int updateStockBoardIndustryNameEm(StockBoardIndustryNameEm stockBoardIndustryNameEm)
    {
        return stockBoardIndustryNameEmMapper.updateStockBoardIndustryNameEm(stockBoardIndustryNameEm);
    }

    /**
     * 删除东方财富-行业板块对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryNameEmByIds(String ids)
    {
        return stockBoardIndustryNameEmMapper.deleteStockBoardIndustryNameEmByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除东方财富-行业板块信息
     * 
     * @param id 东方财富-行业板块ID
     * @return 结果
     */
    @Override
    public int deleteStockBoardIndustryNameEmById(Long id)
    {
        return stockBoardIndustryNameEmMapper.deleteStockBoardIndustryNameEmById(id);
    }
}
